<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: taohj
  Date: 2014/8/13
  Time: 18:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<div>
    <form  enctype="multipart/form-data" method="post" >

        <table style="padding-left: 20px; width: 350px; margin: 20px 30px">
            <tr>
                <td style="width: 60px">名称:</td>
                <td><input name="name" type="text" class="easyui-textbox" data-options="required:true"/></td>
            </tr>

            <tr>
                <td>上级机构:</td>
                <td>
                    <select name="superOrg"  class="easyui-combobox" style="width: 156px">

                        <c:forEach items="${requestScope.result.list}" var="org">
                            <option value="${org.id}">${org.name}</option>
                        </c:forEach>
                    </select>
                </td>
            </tr>


            <tr>
                <td >图片:</td>
                <td>
                    <input name="image"  class="easyui-filebox" style="width: 152px" data-options="buttonText:'选择图片'">
                </td>
            </tr>


            <tr>
                <td>机构分类:</td>
                <td>
                    <select name="category" class="easyui-combobox" style="width: 152px">
                        <c:forEach items="${requestScope.categorys}" var="category">
                            <option value="${category.id}">${category.name}</option>
                        </c:forEach>
                    </select>
                </td>
            </tr>



            <tr>
                <td>联系人:</td>
                <td><input name="contacts" type="text" class="easyui-textbox" data-options="required:true"/></td>
            </tr>


            <tr>
                <td>电话:</td>
                <td><input name="telephone" type="text" class="easyui-textbox" data-options="required:true"/></td>
            </tr>

            <tr>
                <td>电子邮箱:</td>
                <td><input name="email" type="text" class="easyui-textbox" data-options="required:true"/></td>
            </tr>


            <tr>
                <td>地址:</td>
                <td><input name="address" type="text" class="easyui-textbox" data-options="required:true"/></td>
            </tr>



            <tr>
                <td>邮编:</td>
                <td><input name="postcode" type="text" class="easyui-textbox" data-options="required:true"/></td>
            </tr>


            <tr>
                <td>简介</td>
                <td><input name="description" class="easyui-textbox"></td>
            </tr>
        </table>



    </form>

    <div style="text-align:center;padding:18px;">
        <a href="javascript:void(0);" class="easyui-linkbutton" onclick="org.createSubmit(this)">保 存</a>
        <a href="javascript:void(0);" class="easyui-linkbutton" onclick="util.formClear(this);">清 空</a>
    </div>

</div>


<script>
    $(function(){
        $('tr').each(function(){
            $(this).find("td:first").css('text-align','right');
            $(this).css('line-height','30px');
        });
    });
</script>
